import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
import Index from './page/Index'
import Hooks from './page/Hooks'
function App () {
  return (
    <div className="App">
      <Router>
        <ul>
          <li><Link to='/index'>home</Link></li>
          <li><Link to='/list/123'>list</Link></li>
        </ul>
        <Route path="/index" exactx component={Hooks}></Route>
        <Route path="/list/:id" component={List}></Route>
      </Router>
    </div>
  );
}

export default App;
